1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Reference | endpath()


Syntax
endpath(draw=True)

DescriptionThe endpath() command is the companion to beginpath() and may only be called after the later. When endpath() is called, the path defined between beginpath() and endpath() is drawn to the screen. Optionally, when endpath(draw=False) is called, the path is not drawn to the screen, but can be assigned to a variable and drawn to the screen at a later time with the drawpath() command. Check the tutorial on paths for other possibilities with paths.
ReturnsBezierPath containing the constructed path
Tutorial Paths


Example
stroke(0.2)
beginpath(10, 10)
lineto(40, 10)
endpath()
beginpath(10, 10)
lineto(40, 10)
p = endpath(draw=False)
drawpath(p)